﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

[CanEditMultipleObjects, CustomEditor(typeof(GPUImage), true)]
public class GPUImageEditor : Editor
{

    GPUImage gpuImage;
    private Vector3 position = Vector3.zero;

    private Vector3 rotation = Vector3.zero;
    private Vector3 scale = Vector3.one;

    
    public override void OnInspectorGUI()
    {
        gpuImage = target as GPUImage;

        position = EditorGUILayout.Vector3Field("Position", position);
        gpuImage.position = position; 

        rotation = EditorGUILayout.Vector3Field("Rotation", rotation);
        gpuImage.rotation = rotation; 

        scale = EditorGUILayout.Vector3Field("Scale", scale);
        gpuImage.scale = scale; 
    }
}
